﻿// Decompiled with JetBrains decompiler
// Type: System.Web.Razor.VBRazorCodeLanguage
// Assembly: System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: 682513D6-F37E-48AC-9909-F3EE103CFF14
// Assembly location: D:\Project\Idea\无人机外网\uav\客户端工程\排查工具\bin\Release\System.Web.Razor.dll

using Microsoft.VisualBasic;
using System.Web.Razor.Generator;
using System.Web.Razor.Parser;

namespace System.Web.Razor
{
  /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Represents a language generator and provider of the VB razor code.</summary>
  public class VBRazorCodeLanguage : RazorCodeLanguage
  {
    private const string VBLanguageName = "vb";

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the language name.</summary>
    /// <returns>The language name.</returns>
    public override string LanguageName => "vb";

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the type of CodeDomProvider.</summary>
    /// <returns>The type of CodeDomProvider.</returns>
    public override Type CodeDomProviderType => typeof (VBCodeProvider);

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates a code parser in a <see cref="T:System.Web.Razor.Parser.ParserBase" />.</summary>
    /// <returns>A code parser in a <see cref="T:System.Web.Razor.Parser.ParserBase" />.</returns>
    public override ParserBase CreateCodeParser() => (ParserBase) new VBCodeParser();

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates the code language generator.</summary>
    /// <returns>The code language generator.</returns>
    /// <param name="className">The name of the class.</param>
    /// <param name="rootNamespaceName">The root namespace name.</param>
    /// <param name="sourceFileName">The source File name.</param>
    /// <param name="host">The <see cref="T:System.Web.Razor.RazorEngineHost" />.</param>
    public override RazorCodeGenerator CreateCodeGenerator(
      string className,
      string rootNamespaceName,
      string sourceFileName,
      RazorEngineHost host)
    {
      return (RazorCodeGenerator) new VBRazorCodeGenerator(className, rootNamespaceName, sourceFileName, host);
    }
  }
}
